package top.kaoshanji.p2ch22a;

import java.text.ParseException;
import java.text.SimpleDateFormat;

/**
 * 代码清单-p2ch22a-572页d：定制序列化示例
 * author kaoshanji
 * ^_^
 * create time 2025/3/1 17:05
 */
public class SimpleFormatterDemo {

    public static void main(String[] args) throws ParseException {

        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        Student zhangsan = new Student("张三", sdf.parse("1990-12-12"), 80.9d);

        System.out.println(SimpleFormatter.format(zhangsan));

    }

}
